<template>
  <div id="two-category">
    <div
      class="two-category-item"
      v-for="(item, index) in twoCategory"
      :key="index"
    >
      <a :href="item.link"><img :src="item.image" /></a>
      <span>{{ item.title }}</span>
    </div>
    <slot></slot>
  </div>
</template>
<script>
export default {
  name: "TwoCategory",
  props: {
    twoCategory: {
      type: Array,
      default: () => [],
    },
  },
};
</script>
<style scoped>
#two-category {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: flex-start;
  width: calc(100vw - 100px);
  font-size: 13px;
  padding: 0 10px;
}
.two-category-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 80px;
  margin-top: 18px;
}
img {
  width: 64.8px;
  height: 64.8px;
  margin-bottom: 14px;
}
</style>
